package com.ruoyi.project.ledger.mapper;

import java.util.List;
import com.ruoyi.project.ledger.domain.LedgerForklift;
import org.apache.ibatis.annotations.Param;

/**
 * 叉车台账Mapper接口
 * 
 * @author ruoyi
 * @date 2020-05-08
 */
public interface LedgerForkliftMapper 
{
    /**
     * 查询叉车台账
     * 
     * @param id 叉车台账ID
     * @return 叉车台账
     */
    public LedgerForklift selectLedgerForkliftById(Long id);

    /**
     * 查询叉车台账列表
     * 
     * @param ledgerForklift 叉车台账
     * @return 叉车台账集合
     */
    public List<LedgerForklift> selectLedgerForkliftList(LedgerForklift ledgerForklift);

    /**
     * 新增叉车台账
     * 
     * @param ledgerForklift 叉车台账
     * @return 结果
     */
    public int insertLedgerForklift(LedgerForklift ledgerForklift);

    /**
     * 修改叉车台账
     * 
     * @param ledgerForklift 叉车台账
     * @return 结果
     */
    public int updateLedgerForklift(LedgerForklift ledgerForklift);

    /**
     * 删除叉车台账
     * 
     * @param id 叉车台账ID
     * @return 结果
     */
    public int deleteLedgerForkliftById(Long id);

    /**
     * 批量删除叉车台账
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteLedgerForkliftByIds(Long[] ids);

    public LedgerForklift selectLedgerForkliftByLicensePlate(@Param("licensePlate") String licensePlate,@Param("businessId") Long businessId);
}
